package cn.good.mapper;

import cn.good.pojo.Order;

import java.util.Map;
import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Order record);

    int insertSelective(Order record);
    //查询订单信息
    Order selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    //查询订单列表
    List<Order> selectListByMap(Map map);
    //查询订单数量
    int selectListCountByMap(Map map);
    //修改订单状态
    int updateOrderById(Long id,Integer orderStatus);
    //根据编号查询订单
    Order selectOrderByOrderNo(String orderNo);
    //根据订单号修改订单状态
    int updateByOrderNo(Map map);
}